# -*- coding:utf-8 -*-
class Solution:
    def MoreThanHalfNum_Solution(self, numbers):
        # write code here
        if not numbers:
            return 0
        count = dict()
        for i in range(len(numbers)):
            if numbers[i] in count.keys():

                count[numbers[i]] += 1

            else:
                count[numbers[i]] = 1
        res_num = 0
        mid_num = len(numbers)//2
        for i in count.keys():
            if count[i] > mid_num:
                res_num = i
                break
        return res_num

test = Solution()
print(test.MoreThanHalfNum_Solution([1]))